home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / regnpckg.sit / Picture Window ƒ / PictWindow.h < prev    next >
Text File  |  1990-12-10  |  1KB  |  40 lines

  1. /* Picture Window WDEF
  2.  
  3.    ⌐ 1990, Nigel Perry
  4.    
  5.    This WDEF makes a window from a picture, which must be passed as a
  6.    PicHandle as the refCon parameter to the NewWindow() call. By default
  7.    the window will be the same shape as the picture, and may consist
  8.    of a number on non-contiguous areas - a mask is created
  9.    from the picture by "lasso"ing it. A variation code allows a user
  10.    supplied mask - in which case the window may have holes in it╔
  11.    
  12.    This WDEF requires the BitMapToRegion trap. This currently only
  13.    exists in ColourQD systems, a version of it is included in this package
  14.    for those of you without colour (like me).
  15.    
  16.    NIgel Perry,
  17.    Dept of Computing,
  18.    Imperial College of Science, Technology and Medicine,
  19.    180, Queens Gate
  20.    London SW17 2BZ
  21.    
  22.    np@doc.ic.ac.uk
  23.  */
  24.  
  25. #define PictWDEF (16 * 16)
  26.  
  27. /* variation codes - or together with PictWDEF */
  28. /* primary */
  29. #define PW_Lasso 4
  30. #define PW_Mask 0
  31. #define PW_PicMask 8
  32. #define PW_PicWind 12
  33. /* secondary */
  34. #define PW_SizeWind 2
  35. #define PW_AddFrame 1
  36.  
  37. /* for low-level hackers╔ */
  38. #define PW_UserMask    8
  39. #define PW_CalcMask 4
  40.